home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / utils database / TealInfo Dev Kit for Macintosh 1.56 / infodevm.exe / devkit / demo.txt < prev    next >
Encoding:
Text File  |  1999-01-07  |  3.2 KB  |  224 lines

  1. #
  2. # DEMO
  3. #
  4. # (c)1998-1999 TealPoint Software All Rights Reserved
  5. #
  6. # This sample Folio showing many object on screen
  7. #
  8.  
  9. #
  10. # A Password object.  The key is "foobar", which may be entered to
  11. # remove the reminder from popping up whenever you start the folio.
  12. # Since the LOCKOUT style flag is not also used, you can still enter
  13. # the folio without entering the key.
  14.  
  15. PASSWORD
  16.     KEY    foobar
  17.     STYLE    REGISTER
  18. #    STYLE    LOCKOUT
  19.     TEXT    "Enter your the key 'foobar' to remove this message or just 'OK' to continue."
  20.  
  21. #
  22. # A GOTO button without a target functions as a close button
  23. #
  24.  
  25. GOTO
  26.     BX    120
  27.     BY    2
  28.     BW    35
  29.     BH    14
  30.     BTEXT    "Done"
  31. #
  32. # A GOTO button used to go to another folio.
  33. #
  34.  
  35. GOTO
  36.     BX    82
  37.     BY    2
  38.     BW    35
  39.     BH    14
  40.     BTEXT    "Metric"
  41.     TARGET    "Metric Converter"
  42.  
  43. #
  44. # A Text resource to hold a TEXT field for one or more other objects
  45. #
  46.  
  47. TRES    list_text
  48.     TEXT
  49.         "Lodging"
  50.         ">Hotels"
  51.         ">>Cheap"
  52.         ">>Moderate"
  53.         ">>Fancy"
  54.         ">B and b's"
  55.         "Food"
  56.         ">American"
  57.         ">British"
  58.         ">French"
  59.         ">Mexican"
  60.         ">Spanish"
  61.         ">Yugoslavian"
  62.         "Transportation"
  63.         ">Taxis"
  64.         ">Railroads"
  65.         ">Car Rental"
  66.  
  67. #
  68. # Another Text Resource
  69. #
  70.  
  71. TRES    list_text2
  72.     TEXT    "TextRes 2"
  73.  
  74. #
  75. # A Label
  76. #
  77.  
  78. LABEL
  79.     X    1
  80.     Y    1
  81.     FONT    1
  82.     STYLE    INVERTED    
  83.     TEXT "Demo Folio"
  84.  
  85. #
  86. # A multi-column table list with quoted text and various alignment options
  87. # Note the use of embedded quotation marks in entries of the table
  88. #
  89.  
  90. LIST
  91.     X    0
  92.     Y    90
  93.     W    78
  94.     H    68
  95.     TABS    30 50
  96.     STYLE HORIZ_RULE VERT_RULE BOLD_BORDER ALIGN_CENTER ALIGN_RIGHT_END
  97.     TEXT
  98.         """Q""" "A" "B"
  99.         "Line 2" "A" "B"
  100.         "Line 3" "A" "B"
  101.         "Line 4" "A" "B"
  102.         "Line 5" "A" "B"
  103.         "Line 6" """A""" "B"
  104.         "Line 7" "A" "B"
  105.         "Line 8" "A" "B"
  106.         "Line 9" "A" "B"
  107.         "Line 10" "A" "B"
  108.         "Line 11" "A" "B"
  109.         "Line 12" "A" "B"
  110.         "Line 13" "A" "B"
  111.         "Line 14" "A" "B"
  112.  
  113. #
  114. # An expanding outline object
  115. #
  116.  
  117. OUTLINE 
  118.     X  81
  119.     Y  20
  120.     W  78
  121.     H  68
  122.     FONT  0
  123.     TEXT @list_text
  124.     
  125.  
  126. #
  127. # A Popup List
  128. #
  129.  
  130. POPLIST    speed_list
  131.     X    10
  132.     Y    20
  133.     W    40
  134.     H    80
  135.     BX    5
  136.     BY    30
  137.     BW    40
  138.     BH 15    
  139.     STYLE BOLD_BORDER
  140.     TEXT    
  141.         "Off"
  142.         "Low"
  143.         "Med"
  144.         "High"
  145.         "Turbo"
  146.  
  147. #
  148. # A Checkmark object, whose text is linked to the 'speed_list' object
  149. #
  150.  
  151. CHECKMARK
  152.     X    5
  153.     Y    15
  154.     W    80
  155.     H    15
  156.     LINKS speed_list
  157.     TEXT "Checkmark1"
  158.     TEXT "Checkmark2"
  159.     TEXT "Checkmark3"
  160.     TEXT "Checkmark4"
  161.  
  162. #
  163. # An Image object that cycles through four different images from
  164. # the 'DemoPics' image database.
  165. #
  166.  
  167. IMAGE
  168.     X  81
  169.     Y  90
  170.     W  78
  171.     H  68
  172.     SX    0
  173.     SY    0
  174.     RECORD    0
  175.     DATABASE "DemoPics"
  176.     CYCLE    4
  177.     DELAY    10
  178.  
  179. #
  180. # Some simple cycling text, running at 10 frames per second
  181. #
  182.  
  183. WINDOW
  184.     W    40
  185.     H    15
  186.     X    5
  187.     Y    68
  188.     STYLE    NO_BORDER
  189.     CYCLE    9
  190.     TEXT    "The"
  191.     TEXT    "quick"
  192.     TEXT    "brown"
  193.     TEXT    "fox"
  194.     TEXT    "jumped"
  195.     TEXT    "over"
  196.     TEXT    "the"
  197.     TEXT    "lazy"
  198.     TEXT    "dog."
  199.     DELAY    1
  200.  
  201. #
  202. # The About Popup Window
  203. #
  204.  
  205. POPWINDOW
  206.     X    10
  207.     Y    20
  208.     W    140
  209.     H    120
  210.     BX    5
  211.     BY    50
  212.     BW    40
  213.     BH     15    
  214.     STYLE    BOLD_BORDER
  215.     BTEXT    "About"
  216.     TEXT    
  217.         "This folio demonstrates a number of screen objects " \
  218.         "for TealInfo."
  219.         ""
  220.         "It demonstrates a number of features, including all the UI "\
  221.         "objects and a how they link together to create simple "\
  222.         "application."
  223.  
  224.